package com.lzhan.day14;

public class DemoThread extends Thread {
	public DemoThread(String name){
		super(name);
	}
	@Override
	public void run() {
		for (int i = 0; i < 20; i++) {
			System.out.println(this.getName()+"->Thread: num is"+ i);
		}

	}
	
}
